package com.qf.daomain;

import java.util.Set;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/9/26 16:51
 */

public class Perm {
    private Integer id;
    private String name;
    private Set<Role> roleSet;

    public Perm() {
    }

    public Perm(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Perm(Integer id, String name, Set<Role> roleSet) {
        this.id = id;
        this.name = name;
        this.roleSet = roleSet;
    }

    @Override
    public String toString() {
        return "Perm{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Role> getRoleSet() {
        return roleSet;
    }

    public void setRoleSet(Set<Role> roleSet) {
        this.roleSet = roleSet;
    }
}
